Custom 404 Page In Laravel 8

Custom 404 Page In Laravel 8

Following steps that help you to customize 404 not found  page 

Step 1:  Create a new view file to customize 404 files 

Filename :-> 404.blade.php

File Path :-> /resources/views/errors/404.blade.php

Example for  bootstrap 4 layout  

@extends('layouts.app')
@section('title','404')
@section('content')
<!-- example for bootstrap 4 layout -->
<div class="page-wrap d-flex flex-row align-items-center">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12 text-center">
<span class="display-1 d-block">404</span>
<div class="mb-4 lead">The page you are looking for was not found.</div>
<a href="{{ url('/')}}" class="btn btn-link">Back to Home</a>
</div>
</div>
</div>
</div>
@endsection

We are Recommending you:

Leave a comment

Comments